<%@ page import="com.crr.pojo.Emp" %><%--
  Created by IntelliJ IDEA.
  User: acer
  Date: 2024-7-30
  Time: 17:13
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
<style>
    table {
        width: 80%;
        margin: 20px auto;
        border-collapse: collapse; /* 设置表格边框合并 */
        margin-top: 20px;
        border: 10px solid #ddd;
        background: #c1c1df;
        color: #fff; /* 设置表格文字颜色 */
        text-align: center; /* 设置表格文字居中 */
        line-height: 40px;
    }
</style>
</head>
<body>

<c:forEach items="${list}" var="emp">

    <table>
    <tr>
        <td align="center">${emp.empno}</td>
        <td align="center">${emp.ename}</td>
        <td align="center">${emp.dept.deptno}</td>

    </tr>
    <br>
    </table>
</c:forEach>

</body>
</html>
